# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 9:25
# @Author  : clm
# @Email   : 2894940379@qq.com
# @File    : send_mail_page.py
# @Software: PyCharm
from pages.markt_page import MarktPage
from selenium.webdriver.common.by import By

class SendMailePage(MarktPage):
    url = "http://localhost/crm/index.php?m=setting&a=sendemail"
    zt_locator = (By.CSS_SELECTOR, "body > div.container > div.row")
    yj_sz_locator = (By.CSS_SELECTOR,"body > div.container > div.row > div:nth-child(2) > form > div > div:nth-child(2) > p > a:nth-child(4)")
    def click_zt(self):
        """点击整体框架"""
        self.driver.find_element(*self.zt_locator).click()
    def click_yj_sz(self):
        """点击邮件设置"""
        self.driver.find_element(*self.yj_sz_locator).click()